package com.itheima.factory;

import com.itheima.controller.IStudentController;
import com.itheima.controller.ITeacherController;
import com.itheima.controller.impl.StudentControllerImpl;
import com.itheima.dao.IStudentDao;
import com.itheima.dao.ITeacherDao;
import com.itheima.dao.impl.StudentDaoImpl;
import com.itheima.service.IStudentService;
import com.itheima.service.ITeacherService;
import com.itheima.service.impl.StudentServiceImpl;

public class Factroy {
    // 生成学生的controlelr
    public static IStudentController getStudentController(){
        return new StudentControllerImpl();
    }

    // 生成学生的service
    public static IStudentService getStudentService(){
        return new StudentServiceImpl();
    }

    // 生成学生的dao
    public static IStudentDao getStudentDao(){
        return new StudentDaoImpl();
    }

    // 生成老师的controlelr
    public static ITeacherController getTeacherController(){
        return null;
    }
    // 生成老师的service
    public static ITeacherService getTeacherService(){
        return null;
    }
    // 生成老师的dao
    public static ITeacherDao getTeacherDao(){
        return null;
    }
}
